package com.zkthink.ceres.common.enums;

import com.zkthink.exception.BizException;
import lombok.Getter;

/**
 * @ClassName ParameterUniqueEnum
 * @Description: 参数唯一标识
 * @Author ck
 * @Date 2021/11/16
 * @Version V1.0
 **/
@Getter
public enum ParameterUniqueEnum {
    FXXLUSL_PARMETER("love.sendSms.gift.num", "发消息奖励礼物,礼物数量"),
    FXXXXSL_PARMETER("love.sendSms.sms.num", "发消息奖励礼物,消息数量"),
    FXXXXRS_PARMETER("love.sendSms.person.num", "发消息奖励礼物,人数数量"),
    FXXQT_PARMETER("love.sendSms.switch", "发消息奖励礼物,启停设置1:开启2:关闭"),
    TJZCJL_PARMETER("love.refer.register.gift.num", "被推荐人注册,推荐人得到的奖励小红心个数"),
    TJTYVIPJL_PARMETER("love.refer.tyVip.gift.scale", "被推荐人充值体验vip,推荐人得到的奖励小红心比例"),
    TJZSVIPJL_PARMETER("love.refer.zsVip.gift.scale", "被推荐人充值钻石vip,推荐人得到的奖励小红心比例"),
    TJYZVIPJL_PARMETER("love.refer.yzVip.gift.scale", "被推荐人充值银钻vip,推荐人得到的奖励小红心比例"),
    TJJZVIPJL_PARMETER("love.refer.jzVip.gift.scale", "被推荐人充值金钻vip,推荐人得到的奖励小红心比例"),
    TJJLQT_PARMETER("love.refer.switch", "推荐人奖励,启停设置1:开启2:关闭"),
    PTYYEFHBL_PARMETER("love.platform.sum.dividend.scale", "平台营业额的分红比例,比如10就是总营业额的10%"),
    CASHTOLOVE_PARMETER("love.cash.dividend.rate", "营业额兑换小红心的比例比如10就是一块钱的营业额兑换十个小红心"),
    LUTXQD_PARMETER("love.gift.withdraw.start.point", "礼物提现起点，200元"),
    LUTXSXF_PARMETER("love.gift.withdraw.handling.fee", "礼物提现手续费比如2就是提现额的2%"),
    LUTXXDC_PARMETER("love.gift.withdraw.cash.rate", "提现时，小红心对换现金的比例比如0.1，就是1个小红心可以换0.1元"),
    LUTXCZR_PARMETER("love.gift.withdraw.zhesuan.rate", "提现后的折算比例,比如说50，就是折算现金后的50%。"),

    CUSTOMERSERVICE_EFFECTIVETIME("customer.service.sms.effective.time", "客服消息有效时间(分钟)"),
    JZVIPHN_HB("love.honbao.jzVipHn.rate", "金钻VIP和金钻VIP兼职红娘领取的营业额分红比例"),
    PTHN_HB("love.honbao.ptHn.rate", "红娘领取的营业额分红比例"),
    //    TPHN_HB("love.honbao.tpHn.rate", "铜牌红娘领取的营业额分红比例"),
//    YPHN_HB("love.honbao.ypHn.rate", "银牌红娘领取的营业额分红比例"),
//    JPHN_HB("love.honbao.jpHn.rate", "金牌红娘领取的营业额分红比例"),
//    LOVETUTOR_HB("love.honbao.loveTutor.rate", "爱情导师领取的营业额分红比例"),
    CASHRATE_VIP("vip.cash.love.rate", "充值vip时，钱和小红心兑换比例:10，比如冲了一块钱，送十个小红心"),
    PTHN_SJ("sj.ptHn.love.num", "升级普通红娘的需要的情缘值个数"),
    TPHN_SJ("sj.tpHn.love.num", "升级铜牌红娘的需要的情缘值个数"),
    YPHN_SJ("sj.ypHn.love.num", "升级银牌红娘的需要的情缘值个数"),
    JPHN_SJ("sj.jpHn.love.num", "升级金牌红娘的需要的情缘值个数"),
    LOVETUTOR_SJ("sj.loveTutor.love.num", "升级爱情导师需要的情缘值个数"),
    PHYSICAL_STORES_VIP_TURNOVER("std.ps.vip.turnover", "实体店充值VIP营业额收入设置比例：60=60%"),
    PHYSICAL_STORES_GIFT_TURNOVER("std.ps.gift.turnover", "实体店礼物营业额收入设置比例：0.1=10%"),
    OFFICIAL_ACCOUNT_NUMBER_USERID("official.account.number.userid", "官方会员账号ID(比如牵手榜默认发布者信息展示)"),
    CUSTOMER_SERVICE_HOURS("customer.service.hours", "官方客服上班时间例如08:30-17:30(符号:-请用英文)"),
    MSG_GET_RED_HEART_NUMBER("msg.get.red.heart.number", "回复消息得到小红心数量例如回复一条得到10小红心"),
    CALL_CHARGING_SWITCH("call.charging.switch", "语音/视频通话收费启停设置：1:启动 0:关闭"),
    CALL_CHARGE_AMOUNT("call.charge.amount", "语音/视频通话收费金额"),
    LOVE_DICTIONARY_SWITCH("love.dictionary.switch", "恋爱宝典奖励,启停设置1:开启0:关闭"),
    LOVE_DICTIONARY_NUM("love.dictionary.num", "恋爱宝典奖励数量:10"),
    LIVEON_ONEMNIUTE_RED_HEART_NUMBER("live.in.minute.heart.number", "直播连麦一分钟扣除小红心的个数"),
    ;


    private String code;

    private String desc;

    ParameterUniqueEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static ParameterUniqueEnum getDscByType(String type) {
        for (ParameterUniqueEnum p : values()) {
            if (p.getCode().equals(type)) {
                return p;
            }
        }
        throw new BizException("no support promotionPlan");
    }
}
